package com.wyp168.renrenfilm.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wyp168.renrenfilm.core.config.LongJsonDeserializer;
import com.wyp168.renrenfilm.core.config.LongJsonSerializer;
import lombok.Data;

/**
 * 
 * 
 * @author wyp168
 * @email 2721255249@qq.com
 * @date 2022-11-16 18:36:43
 */
@Data
@TableName("film_label")
public class FilmLabelEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long id;
	/**
	 * 标签名称
	 */
	private String title;
	/**
	 * 标签颜色code(使用RGB表示法，如:#000)
	 */
	private String colorCode;
	/**
	 * black
	 */
	private String codeTitle;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createdAt;
	/**
	 * 创建者
	 */
	private String createdBy;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifiedAt;
	/**
	 * 更新者
	 */
	private String modifiedBy;
	/**
	 * 逻辑删除【0：未删除， 1：已删除】
	 */
	@TableLogic
	private Integer isDeleted;

}
